package eteam.aps.systeminterface.model.reqparam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "变更状态请求参数")
public class ChangeStateParam extends IdParam {
    @ApiModelProperty("状态【-1删除 0停用 1启用】")
    @NotNull(message = "状态不合法")
    @Max(value = 1, message = "状态不合法")
    @Min(value = -1, message = "状态不合法")
    private Integer state;
}
